<?php
$this->pageTitle=Yii::app()->name . ' - Photo';
$this->breadcrumbs=array(
	Yii::t('website','Photo') ,
);
?>
<div id="mainmenu">
		<?php 
		$this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'动漫游戏', 'url'=>array('photo/index?&id=1')),
				array('label'=>'世界名车', 'url'=>array('photo/index?&id=2')),
				array('label'=>'体育运动', 'url'=>array('photo/index?&id=3')),
				array('label'=>'自然风光', 'url'=>array('photo/index?&id=4'))
			),
		)); ?>
</div>
<table valign="top">
<tr>
<td id="picmain">
<?php 
$pagesize=4;
$this->widget('application.extensions.FBGallery.FBGallery', array('pid'=>$_GET['id'],'pager'=>$pagesize)); 
?>
<?php echo $content; ?></td>
<td width="100px">
<table valign="top">
<tr id="picranktitle">
<td id="mainmenu">
热门手机壁纸推荐
</td>
</tr>
<tr valign="top">
<td valign="top">
<?php
$dataProvider=new CActiveDataProvider('PhotoClick',array( 
                                                   'pagination'=>array('pageSize'=>10),
                                                   )
                   );
$this->widget('zii.widgets.CListView', array(
    'dataProvider'=>$dataProvider,
    'itemView'=>'_photoclickview',   // refers to the partial view named '_post'
    'template'=>'{items}',
    'sortableAttributes'=>array(
        'count'
    ),
));?>
</td>
</tr>
<tr height="400">
</tr>
</table></td>
</tr>
</table>

